using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Presentation.FromInAn
{
    public partial class FrmMuonSachTheTheLoai : Form
    {
        public int thang;
        public FrmMuonSachTheTheLoai()
        {
            InitializeComponent();
        }

        private void FrmMuonSachTheTheLoai_Load(object sender, EventArgs e)
        {
            
        }

        private void crptthongkemuontheloai_Load(object sender, EventArgs e)
        {
            UserControlls.rptThongKeMuonTheoThang rptthang = new Presentation.UserControlls.rptThongKeMuonTheoThang();
            rptthang = new Presentation.UserControlls.rptThongKeMuonTheoThang();
            CrystalDecisions.Shared.TableLogOnInfo curtablelog;
            foreach (CrystalDecisions.CrystalReports.Engine.Table curtable in rptthang.Database.Tables)
            {
                curtablelog = curtable.LogOnInfo;
                curtablelog.ConnectionInfo.ServerName = ".";
                curtable.ApplyLogOnInfo(curtablelog);
                rptthang.SetParameterValue("TuThang_Para", thang );

            }
           
            crptthongkemuontheloai.ReportSource = rptthang;
        }
    }
}